package com.erdos.upc.entity;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

import com.erdos.common.entity.AbstractEntity;



public class BusinessPrivilege extends AbstractEntity {
	
	private String facilityId;
	private String businessID;
	private String category;
	private String desc;
	private ControlMode controlMode;


	public String getFacilityId() {
		return facilityId;
	}

	public void setFacilityId(String facilityId) {
		this.facilityId = facilityId;
	}

	public String getBusinessID() {
		return businessID;
	}

	public void setBusinessID(String businessID) {
		this.businessID = businessID;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public ControlMode getControlMode() {
		return controlMode;
	}
	
	public void setControlMode(ControlMode controlMode) {
		this.controlMode = controlMode;
	}
	
	/**
	 * equals方法复写
	 */
	public boolean equals(Object o) {
		if (!(o instanceof BusinessPrivilege)) {
			return false;
		}
		BusinessPrivilege bp = (BusinessPrivilege) o;
		return new EqualsBuilder().append(this.getCategory(), bp.getCategory()).append(this.getBusinessID(), bp.getBusinessID()).isEquals();
	}

	/**
	 * hashCode方法复写
	 */
	public int hashCode() {
		return new HashCodeBuilder(3, 17).append(this.getCategory()).append(this.getBusinessID()).toHashCode();
	}
}